package com.example.wanghao.wangyixinwen.home;

import android.content.Context;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wanghao on 2016/5/18.
 */
public class SettingPage extends BasePage{

    public SettingPage(Context context) {
        super(context);
    }

    @Override
    public View initView() {
        /*TextView tv = new TextView(mContext);
        tv.setText("设置");*/
        ListView lv = new ListView(mContext);
        ArrayAdapter adapter = new ArrayAdapter(mContext, android.R.layout.test_list_item,
                android.R.id.text1, initDatas());
        lv.setAdapter(adapter);
        return lv;
       // return tv;
    }

    @Override
    public void initData() {

    }

    private List initDatas() {
        List<String> datas = new ArrayList<>();
        for (int i = 0; i < 60; i++) {
            datas.add(i + "");
        }
        return datas;
    }
}
